cmake_minimum_required(VERSION 3.10)

# 项目名称
project(soem_motion)

# 指定C标准
set(CMAKE_C_STANDARD 11)

set(SOURCES motion_test.c)

add_executable(motion_test ${SOURCES})
target_include_directories(motion_test PRIVATE 
  /home/fudanrobotuser/SOEM/osal
  /home/fudanrobotuser/SOEM/osal/linux
  /home/fudanrobotuser/SOEM/oshw
  /home/fudanrobotuser/SOEM/oshw/linux  
  /home/fudanrobotuser/SOEM/soem
)
target_include_directories(motion_test PRIVATE /home/fudanrobotuser/SOEM/soem)
target_link_directories(motion_test PRIVATE /home/fudanrobotuser/SOEM/build)
target_link_libraries(motion_test pthread soem)
install(TARGETS motion_test DESTINATION bin)
